// if (!__DEV__) {
//   global.console = {
//       info: () => {},
//       log: () => {},
//       warn: () => {},
//       debug: () => {},
//       error: () => {}
//   };
// }

import React from 'react'
import { YellowBox, View } from 'react-native'
import SplashScreen from "react-native-splash-screen"
import CodePush from "react-native-code-push"
// import { Theme } from "./script/_teaset"
// import { StackNavigatorContainer } from "./script/_stackNavigator"
// import { Layout, Navigator, Login, Cpush, Color } from "./script/_utils"
// import { Cpush } from "./script/_utils"

// Theme.set({
//   sbBtnActiveTitleColor: Color.theme,
//   sbIndicatorLineColor: Color.theme,
//   carouselActiveDotColor:Color.theme,
// });
// Theme.set(Theme.themes.black);
export default class App extends React.PureComponent {
  constructor(props){
    super(props);
    // Cpush.reset();
    // Cpush.check();
  }
  componentDidMount(){
    SplashScreen.hide();
  }
  render() {
    return <View style={{flex:1, backgroundColor:'gray'}}/>
    return <StackNavigatorContainer
      ref = {Navigator.setNavigatorRef.bind(Navigator)}
      onNavigationStateChange = {Navigator.onNavigationStateChange.bind(Navigator)}
    />
    return <View style = {Lt.resolution}>
      <StackNavigatorContainer
        ref = {Navigator.setNavigatorRef.bind(Navigator)}
        onNavigationStateChange = {Navigator.onNavigationStateChange.bind(Navigator)}
      />
    </View>;
  }
}

// YellowBox.ignoreWarnings([
//   // 'Warning: isMounted(...) is deprecated', 
//   // 'Module RCTImageLoader',
//   // 'Require cycle: node_modules/react-native-gesture-handler/',
//   // 'Warning: Expected instance props to match memoized props before componentDidMount',  // teaset  view-shot
//   // 'Warning: Expected instance props to match memoized props before processing the update queue', //SegmentedView
//   // 'Module RCTCameraManager requires main queue setup since it overrides', // ios
//   'requires main queue setup since it overrides', // QQ RNFetchBlob ImagePickerManager
//   'It looks like \"OverlayView\" is reassigning its own `this.props` while rendering'
// ]);
// 关闭指定警告
// console.ignoredYellowBox = ['Warning: isMounted(...)','Warning: Failed prop type'];
// 关闭全部的警告
//console.disableYellowBox = true;


//必须配置以下代码否则重启app回到上一个版本
// let codePushOptions = {checkFrequency: CodePush.CheckFrequency.MANUAL};
// let codePushApp = CodePush(codePushOptions)(App);
// export default codePushApp;
